/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';

// 教师论文管理查询论文
export async function queryTeacherThesisList(data: Global.pageParams) {
  return request<Global.Result<Thesis.ThesisEntity[]>>(
    '/api/queryTeacherThesisList',
    {
      method: 'post',
      data,
    },
  );
}

// 教师修改论文状态
export async function updateThesisStatus(data: Thesis.AnnotationEntity) {
  return request<Global.Result<Thesis.ThesisEntity[]>>(
    '/api/updateThesisStatus',
    {
      method: 'post',
      data,
    },
  );
}

// 查询教师所属班级
export async function queryClassListByTeacher() {
  return request(`/api/queryClassListByTeacher`, {
    method: 'get',
  });
}

// 根据id查询论文
export async function getThesisById(thesis_id: string) {
  return request(`/api/getThesisById?thesis_id=${thesis_id}`, {
    method: 'get',
  });
}

// 创建批注
export async function creatAnnotation(data: Thesis.AnnotationEntity) {
  return request(`/api/creatAnnotation`, {
    method: 'post',
    data,
  });
}
// 编辑批注
export async function updateAnnotation(data: Thesis.AnnotationEntity) {
  return request(`/api/updateAnnotation`, {
    method: 'post',
    data,
  });
}
// 删除批注
export async function destoryAnnotation(data: Thesis.AnnotationEntity) {
  return request(`/api/destoryAnnotation`, {
    method: 'post',
    data,
  });
}

// 查询批注
export async function queryAnnotationlist(data: any) {
  return request(`/api/queryAnnotationList`, {
    method: 'post',
    data,
  });
}
